home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20031118-20041115
/
000047_Chris@bundy.co.uk_Mon Dec 8 18:34:39 2003.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Path: newsmaster.cc.columbia.edu!newsfeed.nyu.edu!newsfeed.berkeley.edu!ucberkeley!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer00.lnd.ops.eu.uu.net!lnewsinpeer00.lnd.ops.eu.uu.net!emea.uu.net!mephistopheles.news.clara.net!newspeer.clara.net!news.clara.net!doris.uk.clara.net
From: Chris@bundy.co.uk
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Command line switches
Date: Mon, 08 Dec 2003 22:57:58 +0000
Sender: Chris
Reply-To: Chris@bundy.co.uk
Message-ID: <820atvkrg5tk7hkv0bn4r840kv6ab17r61@4ax.com>
References: <pqp8tv06mim45q30h48du92s90oklut9sl@4ax.com> <slrnbt91s0.o2u.fdc@sesame.cc.columbia.edu>
X-Newsreader: Forte Agent 1.92/32.572
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@clara.net (please include full headers)
X-Trace: 82d210175d88204149042708e0ba308c88c70c9136617661069010603fd501f1
NNTP-Posting-Date: Mon, 08 Dec 2003 22:57:53 +0000
Lines: 70
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14723
On 8 Dec 2003 14:15:28 GMT, Frank da Cruz
<fdc@columbia.edu> wrote:
Thanks frank,
ive tried your script but I get a syntax error end
of file unexpected expecting "then".
I ran the file on boot as I want to log
continuously
If I can explain a little more, Im actual trying
to capture the data received at the port to a
file. I don't actually need to interact. if i want
to see current activity I tail the log file. The
data is generated by a call logger which I feed
into the data port of my freebsd file server.
Many thanks
Chris
>In article <pqp8tv06mim45q30h48du92s90oklut9sl@4ax.com>,
>Chris@bundy.co.uk wrote:
>: Im trying to get Kermit to record text data that
>: im sending to the serial port, and write a log
>: file. I can do this manually but I just cant quite
>: get it to work using command line switches.
>:
>: the closes i've got is
>:
>: server01# /usr/kermit/work/kermit -l /dev/cuaa0 -b
>: 9600 -C"log session /var/log/session.log" -c
>:
>: this monitors the port OK but does not write the
>: log file. which I want it to append to.
>:
>The -C command-line argument is not treated in sequence with
>the others. The order in which command sources are handled
>is listed on page 462 of "Using C-Kermit". The -C option is
>handled after all other command-line options. Anyway, you're
>missing a space after -C.
>
>It's usually best not to mix and match command-line options and
>interactive commands. Command-line options give you access to
>a small subset of Kermit's functions. When you need more than
>that, use the command language. To do what you want, create a
>little file containing:
>
> #!/usr/kermit/work/kermit
> set modem type none
> set line /dev/cuaa0
> if fail exit 1
> set exit warning off
> set speed 9600
> log session /var/log/session.log
> if fail exit 1
> connect
>
>give it execute permission, and run it instead of the Kermit
>binary. You can also replace the CONNECT command with any
>desired further automated interactions, as described in the
>script-writing tutorial:
>
> http://www.columbia.edu/kermit/ckscripts.html#tut
>
>
>- Frank